package com.gxa.zhonglong.service.impl;

import com.gxa.zhonglong.mapper.CheckPrVOMapper;
import com.gxa.zhonglong.pojo.CheckPrVO;
import com.gxa.zhonglong.pojo.PurchaseReturn;
import com.gxa.zhonglong.service.CheckPrVOService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service("CheckPrVOService")
public class CheckPrVOServiceImpl implements CheckPrVOService {
    @Autowired
    CheckPrVOMapper checkPrVOMapper;

    @Override
    public Map<String,List<CheckPrVO>> selectAll(Integer page, Integer size) {
       List<CheckPrVO> list = checkPrVOMapper.selectAll(page, size);
       Map<String,List<CheckPrVO>> map= new HashMap<>();
       map.put("CheckPr",list);
       return  map;
    }

    @Override
    public List<CheckPrVO> selectByCondition(PurchaseReturn purchaseReturn) {
        List<CheckPrVO> list = checkPrVOMapper.selectByCondition(purchaseReturn);
        return list;
    }


}
